<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="ghlp" %>

<jsp:include page="/includes/head.jsp" />

<div id="page">
	<div id="header"></div>

	<div id="mainarea">
		<div id="sidebar">
			<div id="headerleft">
				<h1>
					<a href="<c:url value="/home.jsp" />"><fmt:message key="time_pesquisa" /></a>
				</h1>
			</div>
			<div id="menulinks">
				<a href="<c:url value="/home.jsp" />"><fmt:message key="home" />
				</a> <a href="<c:url value="/membro/index" />"><fmt:message	key="membros" /> </a> 
						<a href="<c:url value="/publicacao/index" />"><fmt:message key="publicacoes" /> </a>
						#if($linhaPesquisa)
						<a href="<c:url value="/linhaPesquisa/index" />"><fmt:message key="linha" /> </a>
						#end
						<a class="active" href="<c:url value="/visitante/index" />"><fmt:message key="visitante" /> </a>
						<a href="<c:url value="/contato.jsp" />"><fmt:message key="contato" /> </a>
			</div>
		</div>

		<div id="contentarea">
			<h2><fmt:message key="cadastro" /></h2>
			
			<div id="contenterros">
				<c:forEach var="error" items="${errors}">
			    		<h4><fmt:message key="${error.category}" /></h4>
				</c:forEach>
			</div>

		<form action="<c:url value="/visitante/adiciona"/>" method="post">
		<p>
				<LABEL for="titulo"><fmt:message key="nome"/>:</LABEL> 
				<INPUT type="text" name="visitante.nome" size="30" value="${visitante.nome}" /> <br />
				
				<LABEL for="ano"><fmt:message key="universidadeProveniente" />:</LABEL>
				<INPUT type="text" name="visitante.universidadeProveniente" size="4" value="${visitante.universidadeProveniente}" /><br />

				<LABEL for="ano"><fmt:message key="dataVisita" />:</LABEL>
				<ghlp:campoData id="dataVisita" name="visitante.dataVisita" /><br />
		</p>			
		
		<p>
			<br> <INPUT value=<fmt:message key="cadastrar"/> type="submit">
			<INPUT value=<fmt:message key="limpar"/> type="reset">
	
		</p>
		</FORM>

		</div>

		<jsp:include page="/includes/tail.jsp" />